<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>学生选课</title>
    <style>
        body {
            background-color: azure;
            position: relative;
        }

        input[type=submit] {
            width: 100px;
            height: 30px;
            background-color: rgb(244, 244, 244);
            border: none;
            margin-left: 200px;
        }

    </style>
</head>
<body bgcolor="pink">
<h1>欢迎您！<span th:text="${name}"></span></h1>
<br>
<h2>个人选课</h2>
<form method="get" th:align="center" th:action="@{/classtoshow}">
    <!--遍历课程列表-->
    <div th:each="classtochoose:${list}">
        <input name="classtochooses" type="checkbox" th:value="${classtochoose.name}"/>
                <span th:text="${classtochoose.classId}"></span>
                <span th:text="${classtochoose.type}"></span>
                <span th:text="${classtochoose.name}"></span>
                <span th:text="${classtochoose.teacher}"></span>
                <span th:text="${classtochoose.time}"></span>
                <span th:text="${classtochoose.classroom}"></span>
                <span th:text="${classtochoose.studentNum}"></span>
        <br>
    </div>
    <br/>
    <input type="submit" value="提交已选课程"/>

</form>
</body>
</html>